<?php


class Company {

	private $id;
	private $name;
	private $address;
	private $resp_official;
	//array of objects
	private $shops = Array();

	public function __construct(Array $company){
		$this->setName($company["name"]);
		$this->setId($company["id"]);
		$this->setAddress($company["address"]);
		$this->setRespOfficial($company["Resp_official"]);
		$this->setShops($company["shops"]);
	}

	public function setAddress($address) {
		$this->address = $address;
	}


	public function getAddress() {
		return $this->address;
	}


	public function setId($id) {
		$this->id = $id;
	}


	public function getId() {
		return $this->id;
	}


	public function setName($name) {
		$this->name = $name;
	}


	public function getName() {
		return $this->name;
	}


	public function setRespOfficial($resp_official) {
		$this->resp_official = $resp_official;
	}


	public function getRespOfficial() {
		return $this->resp_official;
	}


	public function setShops($shops) {
		$this->shops = $shops;
	}


	public function getShops() {
		return $this->shops;
	}


}
?>